<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/

$factory->define(App\Models\User::class, function (Faker $faker) {
   $departments=['IT','安环','安环部','变电站','财务','采购','采购部','初','初练','初炼','党群','党群部','动力','动力部','动力厂','二炼','二炼钢','高炉','工程','工程部','工会','顾问','国贸','后勤','回转','回转窑','机动工程','机动工程部','纪检','技术中心','精炼','矿热','绿化','煤气','煤气站','品管','企管','企管部','热扎','热轧','热轧机加','人事','人事部','烧结','烧结 ','生产安环','酸洗','酸洗 ','物流','物资','物资 ','物资部','项目','项目部','销售','销售部','信息','信息部','信息管理部','渣厂','制氧','装备','装备部','资料','综合','综合部','综微','综微公司','綜微','总工室'];
    return [
        'name' => $faker->randomElement($departments)
    ];
});


